﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Text;
using System.Windows.Forms;

namespace ZThing
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if(textBox1.Text!="")
            {
                using (StreamWriter writer = new StreamWriter(@"maps\"+textBox1.Text+".dat", true))
                {
                    for (int x = 0; x < 10; x++)
                        writer.WriteLine("0 0 0 0 0 0 0 0 0 0");
                }
                Close();
            }
        }
    }
}
